cc.Class({
    extends: cc.Component,

    // use this for initialization
    onLoad: function () {
        var time = require("Random").getRandomFloat(0, 1);
        var anim = this.getComponent(cc.Animation);
        anim.play('flashstar', time);
    }
});
